<?php $this->load->view('header', array('data' => $data));?>
<div id="center">
	<div id="left_box">
		<div class="module"><div class="text">域名管理</div></div>
		<div class="sub_module">
		<ul class="sub_module">
		<?php foreach ($data['module'][$data['current']['module']]['sub_module'] as $v) { ?>
			<li <?php if ($v['ename'] == $data['current']['sub_module']) echo "class='current'"; ?> ><a href="<?php echo "/{$data['current']['module']}/{$v['ename']}";?>"><?php echo $v['cname'];?></a></li>
		<?php }?>
		</ul>
		</div>
		<div class="desc_box1 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
		<div class="desc_box2 desc_box">
			<div class="title"></div>
			<div class="content"></div>
		</div>
	</div>
	<div id="right_box">
		<form id="add_domain" method="post" action="/domain/manage_add">
		<table class="add">
			<tr>
				<td class="col1">域名</td>
				<td class="col2"><textarea name="domain" cols="50" rows="10"></textarea></td>
				<td class="col3"><div id="_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">统计类型</td>
				<td class="col2"><input type="radio" checked="checked" name="stat_mode" value="2" />网卡流量<input type="radio" name="stat_mode" value="1"/>日志流量</td>
				<td class="col3"><div id="stat_mode_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">统计方法</td>
				<td class="col2"><input type="radio" checked="checked" name="fee_mode" value="1"/>A模式<input type="radio" name="fee_mode" value="2"/>B模式<input type="radio" name="fee_mode" value="3"/>C模式</td>
				<td class="col3"><div id="fee_mode_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">计费类型</td>
				<td class="col2">
					<input type="radio" checked="checked" name="charge_mode" value="1"/>流量
					<input type="radio" name="charge_mode" value="2"/>下载量
				</td>
				<td class="col3"><div id="charge_mode_msg"></div></td>
			</tr>
				<tr>
				<td class="col1">缓存类型</td>
				<td class="col2">
					<input type="radio" checked="checked" name="cache_mode" value="1" />nginx proxy_cache方式
					<br />
					<input type="radio" name="cache_mode" value="2" />nginx proxy_store方式
					<br />
					<input type="radio" name="cache_mode" value="3" />squid方式
					<br />
					<input type="radio" name="cache_mode" value="4" />varnish方式
				</td>
				<td class="col3"><div id="cache_mode_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">日志类型</td>
				<td class="col2">
					<input type="radio" checked="checked" name="log_mode" value="1" />nginx方式
					<input type="radio" name="log_mode" value="2" />squid方式
					<input type="radio" name="log_mode" value="3" />varnish方式
				</td>
				<td class="col3"><div id="log_mode_msg"></div></td>
			</tr>
			<tr>
				<td class="col1">分析类型</td>
				<td class="col2">
					<input type="radio" checked="checked" name="analysis_mode" value="1"/>实时日志分析
					<input type="radio" name="analysis_mode" value="2" />普通日志分析
					<input type="radio" name="analysis_mode" value="3" />收费日志分析
				</td>
				<td class="col3"><div id="analysis_mode_msg"></div></td>
			</tr>
			<tr>
				<td class="col1"><input type="submit" value="新增" /></td>
				<td class="col2" colspan="2"></td>
			</tr>
		</table>
		</form>
		<table class="del">
			<tr>
				<td class="col1">未绑定域名</td>
				<td class="col2">
					<ul>
					<?php foreach ($data['unbind_domain'] as $v) {?>
						<li><?php echo $v['domain'];echo "<a title='删除' domain_id='{$v['id']}' href='javascript:void(0)'>x</a>" ?></li>
					<?php } ?>
					</ul>
				</td>
			</tr>
		</table>
	</div>
</div>
<?php $this->load->view('footer') ?>
